import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SPublicMiniPlayer } from "../Public/SPublicMiniPlayer";
type int = number;
//class SReceiveFlowerInfo
    
    export  class SReceiveFlowerInfo extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SReceiveFlowerInfo();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            this.miniPlayer.__write(arg1);
            arg1.writeInt(this.itemCode);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.miniPlayer = new SPublicMiniPlayer();
            this.miniPlayer.__read(arg1);
            this.itemCode = arg1.readInt();
            return;
        }

        public /* const */_type: int=12073;

        public /* var */miniPlayer: SPublicMiniPlayer;

        public /* var */itemCode: int;

        public static /* var */_regist: SReceiveFlowerInfo;
    }

            SReceiveFlowerInfo._regist = new SReceiveFlowerInfo(true);
        